package com.gsoe.problem.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gsoe.problem.po.ProblemKnowledge;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 题目知识点中间表 Mapper 接口
 * </p>
 *
 * @author xiaoma
 * @since 2024-10-27
 */
public interface ProblemKnowledgeMapper extends BaseMapper<ProblemKnowledge> {
    @Select("select k.knowledge_describe from knowledge as k inner join problem_knowledge pk on k.id = pk.knowledge_id where pk.problem_id=#{id}")
    List<String> getKnowledgeListByProblemId(@Param("id") Long id);
}
